<span style="outline: 1px solid gray">

    <svg width="400" height="400" viewBox="0 0 400 400">
        <rect x="100" y="100" width="200" height="200" fill="red"></rect>
    </svg>

</span>